package com.xlu.serve.Impl;

import com.xlu.mapper.ClassMapper;
import com.xlu.serve.ClassServe;
import com.xlu.vo.ClassesVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServeImpl implements ClassServe {
    @Autowired
    private ClassMapper classMapper;

    @Override
    public List<ClassesVO> getClassByMajor(Integer MajorId, Integer collegeId) {
        List<ClassesVO> classesVOList = classMapper.getClassByMajor(MajorId,collegeId);
        return classesVOList;
    }
}
